﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Teacher.aspx.cs" Inherits="YouthCMS.Admins.Teacher" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataSourceID="TeacherObjectDataSource1" BackColor="White" BorderColor="#CCCCCC"
        BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal">
        <Columns>
            <asp:BoundField DataField="SSN" HeaderText="SSN" SortExpression="SSN" />
            <asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
            <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" />
            <asp:HyperLinkField DataTextField="PersonID" DataNavigateUrlFields="LoginID" DataTextFormatString="Slet" DataNavigateUrlFormatString="~/Admins/Teacher.aspx?delete={0}"
                 HeaderText="Slet En Lærer" 
                Text="Slet Mig">
                <ControlStyle BackColor="#9999FF" />
            </asp:HyperLinkField>
             <asp:HyperLinkField DataTextField="PersonID" DataNavigateUrlFields="PersonID" DataTextFormatString="Tilmeld" DataNavigateUrlFormatString="~/Admins/AssignGroup.aspx?teacher={0}"
                 HeaderText="Tilmeld En Gruppe" 
                Text="Slet Mig">
                <ControlStyle BackColor="#9999FF" />
            </asp:HyperLinkField>
        </Columns>
        <FooterStyle BackColor="#880EBB" CssClass="links2" BorderStyle="None" ForeColor="Black" />
        <HeaderStyle BackColor="#880EBB" BorderStyle="None" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#880EBB" BorderStyle="None" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="white" Font-Bold="True" ForeColor="#880EBB" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#242121" />
    </asp:GridView>
    <asp:ObjectDataSource ID="TeacherObjectDataSource1" runat="server" SelectMethod="GetTeachers"
        TypeName="YouthCMS.Data.TeacherDAL"></asp:ObjectDataSource>
</asp:Content>